<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>认证信息列表</title>
<#include "/view/admin/headList.html"/>
    <script type="text/javascript">

        $(function() {
            //初始化
        });
    </script>
</head>
<body>



<div class="table-class">
    <div class="panel panel-default" style="margin: 10px 10px 10px;">
     <div class="panel-body">
        <form class="bs-example bs-example-form" role="form">


            <div class="input-group">
                <span class="input-group-addon">真实姓名</span>
                <input type="text" id="name" class="form-control" value="${entity.name!}" placeholder="请输入真实姓名">
            </div>
                <span class="bank-label">&nbsp;</span>

            <div class="input-group">
                <span class="input-group-addon">身份证号码</span>
                <input type="text" id="idCard" class="form-control" value="${entity.idCard!}" placeholder="请输入身份证号码">
            </div>
                <span class="bank-label">&nbsp;</span>



            <div class="input-group">
                <span class="input-group-addon">状态</span>
                <select id="status" name="status"
                        class="form-control"
                >
                    <option value="">请选择状态</option>
                                <option value="0" <#if entity.status??&&0 == entity.status>selected="selected"</#if>>审批中</option>

                                <option value="1" <#if entity.status??&&1 == entity.status>selected="selected"</#if>>审批通过</option>

                                <option value="2" <#if entity.status??&&2 == entity.status>selected="selected"</#if>>审批不通过</option>


                </select>

            </div>
                <span class="bank-label">&nbsp;</span>


                <div class="input-group">
                    <span class="input-group-addon">开始认证时间</span>
                    <input type="text" id="createTimeStart" class="form-control isdatetimepicker" value="<#if (entity.createTimeStart)?? >${entity.createTimeStart?string('yyyy-MM-dd HH:mm:ss')}</#if>" id="createTimeStart" name="createTimeStart" data-date-format="yyyy-mm-dd hh:ii:ss">
                </div>
                <span class="bank-label">&nbsp;</span>
                <div class="input-group">
                    <span class="input-group-addon">结束认证时间</span>
                    <input type="text" id="createTimeEnd" class="form-control isdatetimepicker" value="<#if (entity.createTimeEnd)?? >${entity.createTimeEnd?string('yyyy-MM-dd HH:mm:ss')}</#if>" id="createTimeEnd" name="createTimeEnd" data-date-format="yyyy-mm-dd hh:ii:ss">
                </div>
                <span class="bank-label">&nbsp;</span>


            <div class="input-group" style="text-align: right;">
                <a class="btn btn-info"  href="javascript:query('${base}/userinfo/auditInformation')"><span class="glyphicon glyphicon-search"></span> 查找</a>

            </div>
        </form>
     </div>
    </div>


    <table class="table table-hover table-list">
        <thead>
        <tr>
            <td class="table-head-btn">
                <div style="text-align:left;margin-left: 50px;">
                  <!--   <a href="${base}/identitycard/add.do" class="btn btn-primary">新增</a> -->
                </div>
            </td>
        </tr>
        <tr class="table-head">
            <th>序号</th>
                <th class="label-hidden">主键</th>
                <th class="label-hidden">用户ID</th>
                <th>真实姓名</th>
                <th>身份证号码</th>
                <th>身份证正面</th>
                <th>身份证背面</th>
                <th>状态</th>
                <th>认证时间</th>

            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <#list pagination.list as c>
            <tr>
                <td>${(pagination.pageNo-1)*pagination.pageSize+1+c_index}</td>
                        <td class="label-hidden">${c.identitycardId!}</td>
                        <td class="label-hidden">${c.userInfoId!}</td>
                            <td>${c.name!}</td>

                            <td>${c.idCard!}</td>

                        <td><img src="${base}${c.idCardFace!}" height="50px"></td>
                        <td><img src="${base}${c.idCardReverse!}" height="50px"></td>
                        <td> 
                            <#if c.status??>
                                        <#if 0==c.status><span class="label label-default">审批中</span>

                                        <#elseif   1==c.status><span class="label label-success">审批通过</span>

                                        <#elseif 2==c.status><span class="label label-danger">审批不通过</span>

                                    </#if>

                            </#if>
                        </td>
                        <td><#if c.createTime?? >${c.createTime?string('yyyy-MM-dd HH:mm:ss')}</#if></td>

                <td>
                    <!-- <a href="${base}/identitycard/detail.do?identitycardId=${c.identitycardId!}" class="btn btn-primary">详情</a> -->
                    <a href="${base}/userinfo/addAuditInformation?identitycardId=${c.identitycardId!}" class="btn btn-primary">审批</a>
                    <!-- <a href="javascript:checkDelete('${base}/identitycard/delete.do?identitycardId=${c.identitycardId!}')" class="btn btn-primary">删除</a> -->
                </td>
            </tr>








        </#list>
        </tbody>
    </table>


</div>
<script>

    function queryCondition(){
        var href="";
            href+='name='+$('#name').val();
                href+='&'
            href+='idCard='+$('#idCard').val();
                href+='&'
            href+='status='+$('#status').val();
                href+='&'
            href+='createTimeStart='+$('#createTimeStart').val();
                href+='&'
            href+='createTimeEnd='+$('#createTimeEnd').val();
        return href;
    }

</script>

</body>
</html>
